<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aether.Physics2D: Mat22 Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NugetLogo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aether.Physics2D
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Mat22 Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A 2-by-2 matrix. Stored in column-major order.  
 <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Mat22:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22__coll__graph.svg" width="188" height="231"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a16deadeae78d27b68ce22edea42ae3e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a16deadeae78d27b68ce22edea42ae3e7">Mat22</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> c1, <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> c2)</td></tr>
<tr class="memdesc:a16deadeae78d27b68ce22edea42ae3e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct this matrix using columns.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a16deadeae78d27b68ce22edea42ae3e7">More...</a><br /></td></tr>
<tr class="separator:a16deadeae78d27b68ce22edea42ae3e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a572ab7d0c5bb07aa4b59edc7f3922352"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a572ab7d0c5bb07aa4b59edc7f3922352">Mat22</a> (float a11, float a12, float a21, float a22)</td></tr>
<tr class="memdesc:a572ab7d0c5bb07aa4b59edc7f3922352"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct this matrix using scalars.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a572ab7d0c5bb07aa4b59edc7f3922352">More...</a><br /></td></tr>
<tr class="separator:a572ab7d0c5bb07aa4b59edc7f3922352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a9dff6dd4684e523adedb8739eccd48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a7a9dff6dd4684e523adedb8739eccd48">Set</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> c1, <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> c2)</td></tr>
<tr class="memdesc:a7a9dff6dd4684e523adedb8739eccd48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize this matrix using columns.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a7a9dff6dd4684e523adedb8739eccd48">More...</a><br /></td></tr>
<tr class="separator:a7a9dff6dd4684e523adedb8739eccd48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14985545f226fa39181250a3f2616d8f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a14985545f226fa39181250a3f2616d8f">SetIdentity</a> ()</td></tr>
<tr class="memdesc:a14985545f226fa39181250a3f2616d8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set this to the identity matrix.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#a14985545f226fa39181250a3f2616d8f">More...</a><br /></td></tr>
<tr class="separator:a14985545f226fa39181250a3f2616d8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae57e5aca5db002545e4b9335c8d9dbfa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#ae57e5aca5db002545e4b9335c8d9dbfa">SetZero</a> ()</td></tr>
<tr class="memdesc:ae57e5aca5db002545e4b9335c8d9dbfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set this matrix to all zeros.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#ae57e5aca5db002545e4b9335c8d9dbfa">More...</a><br /></td></tr>
<tr class="separator:ae57e5aca5db002545e4b9335c8d9dbfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdfe324ad81cfe2bd1769e3802e11e50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#acdfe324ad81cfe2bd1769e3802e11e50">Solve</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> b)</td></tr>
<tr class="memdesc:acdfe324ad81cfe2bd1769e3802e11e50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html#acdfe324ad81cfe2bd1769e3802e11e50">More...</a><br /></td></tr>
<tr class="separator:acdfe324ad81cfe2bd1769e3802e11e50"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aee993f06f29a660c8b240c9aca418e34"><td class="memItemLeft" align="right" valign="top"><a id="aee993f06f29a660c8b240c9aca418e34"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>Add</b> (ref <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a> A, ref <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a> B, out <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a> R)</td></tr>
<tr class="separator:aee993f06f29a660c8b240c9aca418e34"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aef144db53287b6a2301d5d4f29315430"><td class="memItemLeft" align="right" valign="top"><a id="aef144db53287b6a2301d5d4f29315430"></a>
<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ex</b></td></tr>
<tr class="separator:aef144db53287b6a2301d5d4f29315430"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbd8e7fb22fb99b1bf29b7509de241ed"><td class="memItemLeft" align="right" valign="top"><a id="abbd8e7fb22fb99b1bf29b7509de241ed"></a>
<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ey</b></td></tr>
<tr class="separator:abbd8e7fb22fb99b1bf29b7509de241ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:af1de0c113e28ee769cbabc639ee64639"><td class="memItemLeft" align="right" valign="top"><a id="af1de0c113e28ee769cbabc639ee64639"></a>
<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Inverse</b><code> [get]</code></td></tr>
<tr class="separator:af1de0c113e28ee769cbabc639ee64639"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A 2-by-2 matrix. Stored in column-major order. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a16deadeae78d27b68ce22edea42ae3e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16deadeae78d27b68ce22edea42ae3e7">&#9670;&nbsp;</a></span>Mat22() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct this matrix using columns. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The c1.</td></tr>
    <tr><td class="paramname">c2</td><td>The c2.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a572ab7d0c5bb07aa4b59edc7f3922352"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a572ab7d0c5bb07aa4b59edc7f3922352">&#9670;&nbsp;</a></span>Mat22() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a11</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a12</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a21</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a22</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct this matrix using scalars. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a11</td><td>The a11.</td></tr>
    <tr><td class="paramname">a12</td><td>The a12.</td></tr>
    <tr><td class="paramname">a21</td><td>The a21.</td></tr>
    <tr><td class="paramname">a22</td><td>The a22.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7a9dff6dd4684e523adedb8739eccd48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a9dff6dd4684e523adedb8739eccd48">&#9670;&nbsp;</a></span>Set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>c2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize this matrix using columns. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>The c1.</td></tr>
    <tr><td class="paramname">c2</td><td>The c2.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a14985545f226fa39181250a3f2616d8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14985545f226fa39181250a3f2616d8f">&#9670;&nbsp;</a></span>SetIdentity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetIdentity </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set this to the identity matrix. </p>

</div>
</div>
<a id="ae57e5aca5db002545e4b9335c8d9dbfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae57e5aca5db002545e4b9335c8d9dbfa">&#9670;&nbsp;</a></span>SetZero()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetZero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set this matrix to all zeros. </p>

</div>
</div>
<a id="acdfe324ad81cfe2bd1769e3802e11e50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdfe324ad81cfe2bd1769e3802e11e50">&#9670;&nbsp;</a></span>Solve()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> Solve </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>The b.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>Physics2D/Common/Math.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacenkast.html">nkast</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether.html">Aether</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d.html">Physics2D</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d_1_1_common.html">Common</a></li><li class="navelem"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_mat22.html">Mat22</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
